home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 02 McLean / Listing3.cpp < prev    next >
Encoding:
Text File  |  2001-12-09  |  679 b   |  19 lines

  1. /* Copyright (C) Alex McLean, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Alex McLean, 2001"
  9.  */
  10.  
  11. while( NumCharsProcessed < m_CharsPerFrame )
  12. {
  13.     if( FALSE == m_pPresentCharacter->CanBeExcludedFromUpdate() ) {
  14.         m_pPresentCharacter->ProcessPeriodicAI();
  15.         NumCharsProcessed++;
  16.     }
  17.     m_pPresentCharacter = m_pPresentCharacter->GetNextCyclic();              
  18. }
  19.